$(function() {
	$('#formUpload').ajaxForm({
		beforeSubmit : function(formData, jqForm, options) {
		},
		success : function(result, statusText) {
			if (result && result.success) {
				new PNotify({
					text : result.info,
					type : 'success'
				});
			} else {
				new PNotify({
					text : result.info,
					type : 'error'
				});
			}
		},
		url : sy.contextPath + '/test/upload',
		type : 'post',
		dataType : 'json'
	});
});